package com.dpp.service.impl;


import com.dpp.dto.TakeOrderDTO;

import com.dpp.entity.TakeOrders;

import com.dpp.mapper.OrderMapper;
import com.dpp.mapper.TakeOrderMapper;
import com.dpp.mapper.UserMapper;
import com.dpp.result.Result;
import com.dpp.service.TakeOrderService;
import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@Slf4j
public class TakeOrderServiceImpl implements TakeOrderService {

    @Autowired
    private TakeOrderMapper takeOrderMapper;

    @Autowired
    private OrderMapper orderMapper;

    @Autowired
    private UserMapper userMapper;


    @Override
    public Result insert(TakeOrderDTO takeOrderDTO) {
        return null;
    }

    @Override
    public TakeOrders selectOrderByNumber(Long Number) {
        TakeOrders takeOrders = takeOrderMapper.selectById(Number);
        return takeOrders;
    }
}
